package com.cskaoyan.factory;

import com.cskaoyan.bean.Money;
import org.springframework.beans.factory.FactoryBean;

/**
 * @author stone
 * @date 2022/08/27 09:43
 */
public class MoneyFactoryBean implements FactoryBean<Money> {
    @Override
    public Money getObject() throws Exception {
        Money money = new Money("FactoryBean");
        return money;
    }

    @Override
    public Class<?> getObjectType() {
        return Money.class;
    }
}
